/***********************************************************************************************************
 *** @Author         : jiabao
 *** @Description    :
 *** @Date           : 2023-04-08 11:49:05
 *** @FilePath       : \makefile\project\src\main.cpp
 ***********************************************************************************************************/
#include <iostream>
#include <string.h>
#include "public.h"
// #include "parm.h"
#include "fileMge.hpp"
#ifdef __cplusplus
extern "C"
{
#endif
#include "parm.h"
#ifdef __cplusplus
}
#endif

using namespace std;

#define FILE_PATH_MAX 256
int main()
{
    char exePath[FILE_PATH_MAX];
    memset(exePath, 0, sizeof(exePath));
    FileMgr fileMgr;
    parm_init();
    printf("freq:%d\n", parm_get_freq());
    if (fileMgr.get_exe_path(exePath, FILE_PATH_MAX))
    {
        printf("this program size:%lld\n", fileMgr.get_file_size(exePath));
    }
    else
    {
        printf("get exe path fail!\n");
    }

    printf("%d %s\n\n\n", sum, buffHello);
    print_hello();
    cout << sum1(3, 2, 4, 9) << endl;
    print_now_time();

    printf("%d\n", TEST_DATA);

    while (1)
    {
    }
    return 0;
}
